search_content=$1
DIR=$( dirname "$(readlink -f  ${BASH_SOURCE[0]})" )
echo ${DIR}
#当前脚本上一层路径
PARENTPATH=$(dirname ${DIR})
content=`cat ${DIR}/description | grep -E '^'"${search_content}"'='`
echo hello${content}
search_result=${content#*${search_content}=}
if [ ! -e "${HOME}/.${USER}/profile" ]
then
  mkdir ${HOME}/.${USER}
  echo '#!bin/bash' > ${HOME}/.${USER}/profile
fi
export  ${search_content%=*}=${search_result}
grep -q 'export '${search_content%=*}'='${search_result} ${HOME}/.${USER}/profile
if [ $? -eq 1 ];then
echo no
sudo sed -i'' '$aexport '"${search_content%=*}"'='"${search_result}"'' ${HOME}/.${USER}/profile
fi
